package org.rowingmanager.util
{
	import flash.events.EventDispatcher;
	
	public class Country extends EventDispatcher
	{
		public var name:String;
		public var code:String;
		public var id:String;

		public function Country(data:XML=null)
		{
			if(data){
			name = data.name;
			code = data.code;
			id = data.id;
			}
		}
		
		public override function toString():String{
			return this.name;
		}

	}
}